<%@ page contentType="text/html; charset=iso-8859-1" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>
<%@ include file="../inc/topo.jsp" %>
	<div id="breadcrumb">
		<s:text name="label.breadcrumb" />
		<a href="listarDestinatario.action"><s:text name="label.newsletter" /></a>
	</div><br />
	<h1><s:text name="label.listaDe" /><s:text name="label.destinatarios"/></h1><br />
	<a href="cadastrarDestinatario.action"><b><s:text name="label.adicionar" /></b></a>
	|
	<a href="enviarNewsLetter.action"><b><s:text name="label.enviar"/>&nbsp;<s:text name="label.newsletter"/></b></a>
	<div class="TbLEdit_Form"><br />
		<c:set var="nome"><s:text name="label.nome" /></c:set>
		<c:set var="apagar"><s:text name="label.apagar" /></c:set>
		<c:set var="editar"><s:text name="label.atualizar"></s:text></c:set>
		<s:set name="list" value="listNewsDestinatario" scope="request" />
		<display:table name="list" id="row" requestURI="listarSetores.action">
			<display:column title="#">
				<s:url id="editUrl" action="editarDestinatario">
					<s:param name="newsDestinatario.nuNewsDestinatario">${row.nuNewsDestinatario}</s:param>
				</s:url>
				<s:a href="%{editUrl}"><img src="images/b_edit.png" alt="${editar}" /></s:a>
			</display:column>
			<display:column property="nome" title="${nome}" />
			<display:column property="email" title="E-mail" />
			<display:column title="Apagar" class="del">
				<s:url id="apagar" action="removerDestinatario">
					<s:param name="newsDestinatario.nuNewsDestinatario">${row.nuNewsDestinatario}</s:param>
				</s:url>
				<s:a href="%{apagar}"><img src="images/delete.gif" alt="${apagar}" /></s:a>				
			</display:column>
		</display:table> 
	</div>
	<jsp:include page="../inc/final.jsp" />
